import request from "@/utils/request";
const UnixTime = () => Math.floor(new Date().getTime());

/**
 * 概览-应用列表
 * @param {Object} data
 * {
 *    pageSize: 10,
 *    pageStart: 1,
 *    strOrder:
 *    type: 1用户分析  2充值分析
 * }
 */

// 根据客户端类型获取推广数据
export function clientCount(data) {
  return request({
    url: "/v2/CountPromotion/clientNewCount",
    method: "post",
    data
  });
}

// 获取代理或者推广商推广数据
export function agencyCount(data) {
  return request({
    url: "/v2/CountPromotion/agencyCount",
    method: "post",
    data
  });
}

// 趋势推广数据
export function trendCount(data) {
  return request({
    url: "/v2/CountPromotion/trendCount",
    method: "post",
    data
  });
}

// 推广员统计
export function assistDateCount(data) {
  return request({
    url: "/v2/CountPromotion/assistDateCount",
    method: "post",
    data
  });
}

// 获取玩家账号统计数据
export function getAccountNum(data) {
  return request({
    url: "/v2/CountPromotion/getAccountNum",
    method: "post",
    data
  });
}